<?php

namespace ChannelThrift\Model\Aums;

// use Base\Model\CommonModel;

class CarDealerModel extends CommonModel {

    protected $trueTableName = 'au_car_dealer';
    protected $connection = 'DB_AUMS';
    // protected $tablePrefix = 'au_';

    /* 自动验证规则 */
    protected $_validate = array(

    );

    /* 模型自动完成 */
    protected $_auto = array(

    );

    //'数据表字段'=>'表单字段'
    protected $_map = array(
    );

    protected $fields = array(
        'dealer_id',
        'depart_id',
        'category',
        'bail_amount',
        'freeze_amount',
        'indemnity_amount',
        'org_code',
        'fullname',
        'shortname',
        'type',
        'contact_person',
        'contact_mobile',
        'email',
        'province',
        'city',
        'area',
        'address',
        'postcode',
        'level',
        'status',
        'mod_man_num',
        'dealer_idcard',
        'start_au_remind',
        'trading_remind',
        'arbitrate_remind',
        'money_change_remind',
        'sign_time',
        'is_experienced',
        'conversion_time',
        'auth_type',
        'idcard_front_pic',
        'idcard_back_pic',
        'idcard_hold_pic',
        'is_three_in_one',
        'business_license_num',
        'organization_code',
        'tax_reg_cert_no',
        'business_license_pic',
        'organization_code_pic',
        'tax_reg_cert_pic',
        'auth_letter_pic',
        'auth_status',
        'is_agree_agreement',
        'business_city',
        'apply_auth_time',
        'auth_audit_time',
        'wait_auth_trace_status',
        'sign_contract_no',
        'sign_trace_status',
        'dealer_type',
        'minus_amount',
        'createtime',
        'is_prompt',
        'auto_flag',
        '_pk'=>'dealer_id',
        '_type'=>array(
            'dealer_id'=>'int'
        ),
    );

    protected $_scope = array(
    );



}

